package com.example.demo.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
public interface OutfitRepository extends JpaRepository<Outfit,Long> {
    Set<Outfit> findByUserId(long userId);
    Outfit findByUserIdAndName(long userId, String name);
    Set<Outfit> findByUserIdAndCategory(long userId, String category);
    void deleteOutfitByUserIdAndName(long userId, String name);
}
